#ifndef MAINAPPLICATION_H
#define MAINAPPLICATION_H

#include <QtCore>
#include <QtGui>
#include <QtNetwork>
#include "t_youtube_dump_lib.h"

class MainApplication : public QApplication
{
    Q_OBJECT
public:
    explicit MainApplication(int & argc, char ** argv)
        : QApplication(argc, argv)
        , f_status(false)
    {
    }
    bool init(QString a_video_id)
    {
        f_video_id = a_video_id;
        QString v_token = T_Youtube_Dump_Lib::getVideoInfo(
                &f_nam, a_video_id, &f_video_info);
        f_status = (!v_token.isEmpty());
        return f_status;
    }
public:
    QNetworkAccessManager f_nam;
    QString f_video_id;
    T_Youtube_Video_Info f_video_info;
    bool f_status;
signals:

public slots:

};

#endif // MAINAPPLICATION_H
